import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
// import Reheat from '../components/reheat.vue'
// import TaskPane from '../components/TaskPane.vue'
// import CCPP from '../components/CCPP.vue'

const router = createRouter({
  history: window.location.protocol === 'file:' ? createWebHashHistory('') : createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: '默认页',
      component: () => import('../components/Root.vue')
    },
    {
      path: '/dialog',
      name: '对话框',
      component: () => import('../components/Dialog.vue')
    },
    {
      path: '/taskPane',
      name: '任务窗格',
      component: () => import('../components/TaskPane.vue')
    },
    {
      path: '/taskPane_Reheat',
      name: '二次再热',
      component: () => import('../components/reheat.vue')
    },
    {
      path: '/taskPane_CCPP',
      name: '联合循环',
      component: () => import('../components/CCPP.vue')
    },
    {
      path: '/power-settings',
      name: '功率测量位置设置',
      component: () => import('../components/PowerSettings/PowerChoice.vue')
    }
  ]
})

export default router
